<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title th:text="${session.title}">123</title>
    <link th:replace="common/header"/>
    <link rel="stylesheet" th:href="@{/css/ace-skins.min.css}"/>
</head>
<body class="navbar-fixed">
<div th:replace="common/top"></div>
<div class="container-fluid main_bg" id="main-container">
    <a id="menu-toggler" href="#"><span></span></a>
    <div th:replace="common/menu"></div>
    <div id="main-content" class="clearfix">
        <div id="page-content" class="clearfix">
            <div th:replace="common/title"></div>
            <form class="form-horizontal" th:object="${footQd}" method="post" th:action="@{/foot/footQd/edit}"
                  name="form" enctype="multipart/form-data" th:if="${session.footUser.qx.text == '管理员'}">
                <input type="hidden" name="id" th:field="*{id}"/>
                <input type="hidden" name="logo" th:field="*{logo}"/>
                <input type="hidden" name="slt" th:field="*{slt}"/>
                <h3 class="header smaller lighter blue"><em class="icon-edit"></em>修改球队</h3>
                <div class="row-fluid">
                    <!--PAGE CONTENT BEGINS HERE-->
                    <div class="span6">
                        <div class="control-group">
                            <label class="control-label" for="qdmc">球队名称:<span style="color:red">*</span></label>
                            <div class="controls">
                                <input th:field="*{qdmc}" type="text" name="qdmc" id="qdmc" class="input_fix"
                                       placeholder="球队名称"/>
                            </div>
                        </div>
                    </div>
                    <div class="span6">
                        <span style="color:red" th:if="${#fields.hasErrors('qdmc')}"
                              th:errors="*{qdmc}">Name Error</span>
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="span6">
                        <div class="control-group">
                            <label class="control-label" for="qdbm">球员编码:<span style="color:red">*</span></label>
                            <div class="controls">
                                <input th:field="*{qdbm}" type="text" name="qdbm" id="qdbm" class="input_fix"
                                       placeholder="球员编码"/>
                            </div>
                        </div>
                    </div>
                    <div class="span6">
                        <span style="color:red" th:if="${#fields.hasErrors('qdbm')}"
                              th:errors="*{qdbm}">Name Error</span>
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="span6">
                        <div class="control-group">
                            <label class="control-label" for="sslsId">所属联赛:<span style="color:red">*</span></label>
                            <div class="controls">
                                <select th:field="*{sslsId}" name="sslsId" id="sslsId" class="input_fix">
                                    <option th:each="t: ${sslsList}" th:text="${t.name}" th:value="${t.id}"></option>
                                </select>
                            </div>
                        </div>
                    </div>
                    <div class="span6">
                        <span style="color:red" th:if="${#fields.hasErrors('sslsId')}"
                              th:errors="*{sslsId}">Name Error</span>
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="span6">
                        <div class="control-group">
                            <label class="control-label" for="qdjj">球队简介:<span style="color:red">*</span></label>
                            <div class="controls">
                                <textarea th:field="*{qdjj}" type="text" name="qdjj" id="qdjj" class="input_fix"
                                          placeholder="球队简介" rows="20"></textarea>
                            </div>
                        </div>
                    </div>
                    <div class="span6">
                        <span style="color:red" th:if="${#fields.hasErrors('qdjj')}"
                              th:errors="*{qdjj}">Name Error</span>
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="span6">
                        <div class="control-group">
                            <label class="control-label" for="zyjx">重要奖项:<span style="color:red">*</span></label>
                            <div class="controls">
                                <textarea th:field="*{zyjx}" type="text" name="zyjx" id="zyjx" class="input_fix"
                                          placeholder="重要奖项" rows="20"></textarea>
                            </div>
                        </div>
                    </div>
                    <div class="span6">
                        <span style="color:red" th:if="${#fields.hasErrors('zyjx')}"
                              th:errors="*{zyjx}">Name Error</span>
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="span6">
                        <div class="control-group">
                            <label class="control-label" for="cs">城市:<span style="color:red">*</span></label>
                            <div class="controls">
                                <input th:field="*{cs}" type="text" name="cs" id="cs" class="input_fix"
                                       placeholder="城市"/>
                            </div>
                        </div>
                    </div>
                    <div class="span6">
                        <span style="color:red" th:if="${#fields.hasErrors('cs')}" th:errors="*{cs}">Name Error</span>
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="span6">
                        <div class="control-group">
                            <label class="control-label" for="clsj">成立时间:<span style="color:red">*</span></label>
                            <div class="controls">
                                <input th:field="*{clsj}" type="text" name="clsj" id="clsj" class="input_fix3"
                                       placeholder="成立时间"/>
                                <img onclick="WdatePicker({el:'clsj',dateFmt:'yyyy-MM-dd'})"
                                     style="width:16px;height:22px" src="" alt=""
                                     th:src="@{/js/My97DatePicker/skin/datePicker.gif}"/>
                            </div>
                        </div>
                    </div>
                    <div class="span6">
                        <span style="color:red" th:if="${#fields.hasErrors('clsj')}"
                              th:errors="*{clsj}">Name Error</span>
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="span6">
                        <div class="control-group">
                            <label class="control-label" for="address">主场:<span style="color:red">*</span></label>
                            <div class="controls">
                                <input th:field="*{address}" type="text" name="address" id="address" class="input_fix3"
                                       placeholder="主场"/>
                            </div>
                        </div>
                    </div>
                    <div class="span6">
                        <span style="color:red" th:if="${#fields.hasErrors('address')}" th:errors="*{address}">Name Error</span>
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="text-center span12">
                        <button class="btn btn-primary" type="submit"><em class="icon-save"></em>提交</button>
                        <button class="btn btn-danger" type="reset"><em class="icon-remove"></em>取消</button>
                        <a class="btn" type="button" th:href="@{/foot/footQd/search}"><em class="icon-arrow-left"></em>返回</a>
                    </div>
                </div>
            </form>
            <!--/#page-content-->
        </div>
        <div th:replace="common/skin :: skin"></div>
    </div>
    <!--/#main-content-->
</div>
<!--/.fluid-container#main-container-->
<div th:replace="common/js"></div>
</body>
</html>